package com.zhzh.StudySpringBoot.util;

/**
 * Created by Administrator on 2017/11/17.
 */
public class TestLambdaHello {
    Runnable r1 = () -> { System.out.println(this+" --this"); };
    Runnable r2 = () -> { System.out.println(toString()); };
    public String toString() {  return "Hello, world"; }
    public static void main(String... args) {
        new TestLambdaHello().r1.run();
        new TestLambdaHello().r2.run();
    }
}
